﻿namespace YWM.Communication
{
    public class ModBusAnalysis
    {
        /// <summary>
        /// 事务标识符(ModBusTCP使用)
        /// </summary>
        public short TransactionId { get; set; }

        /// <summary>
        /// 标识符
        /// ModBusTCP中代表unitId
        /// ModBusRTU中代表slaveId
        /// </summary>
        public byte Identifier { get; set; }

        /// <summary>
        /// 功能码
        /// </summary>
        public ModBusFunction ModBusFunction { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public byte[] Data { get; set; }
    }
}
